package com;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.stereotype.Component;

@Component
@Aspect
@EnableAspectJAutoProxy
public class LogAspect {
    @Pointcut("execution(public * com.*.*(..))")
    private void xxx() {

    }

    //@Before("xxx()")
    //@Before("CommonPointcuts.xxx()")
    //@Before("CommonPointcuts.withinDemo()")
    @Before("CommonPointcuts.annotationDemo()")
    public void before() {

        System.out.println("before-----");
    }
}
